package Config;

use utf8;

our $params = {
    main => {
        ageing    => 72,
        time_zone => 'Europe/Moscow',
    },

    sql => {
        dsn     => 'dbi:mysql:database=robo_searcher_test;host=localhost;port=3306;',
        user    => '',
        pass    => '',
        isDebug => 1, # boolean
    },

    ftp => {
        user     => 'anonymous',
        password => 'jip_searcher__',
        timeout  => 15,
    },

    slow_scanner => {
        log_dir   => './logs/slow_scanner',
        log_level => 'all',
        lock_file => './scratch/lock/slow_scanner.pid',
        networks  => [ qw(
                81.89.188.0/23
                217.197.9.0/24
                81.89.186.0/23
                81.89.178.0/23
                81.89.176.0/23
                81.89.180.0/24
                92.42.30.0/24
                92.42.28.0/24
                92.42.31.0/24
                92.42.26.0/23
                217.197.0.0/23
                217.197.7.0/24
                217.197.6.0/24
                81.89.181.0/24
                195.70.216.0/24
                217.197.2.0/24
                217.197.3.0/24
                217.197.4.0/23
                217.197.8.0/24
                81.89.185.0/24
            )
        ],
    },

    fast_scanner => {
        log_dir     => './logs/fast_scanner',
        log_level   => 'all',
        lock_file   => './scratch/lock/fast_scanner.pid',
        max_threads => 20,
    },

    crawler => {
        log_dir     => './logs/crawler',
        log_level   => 'all',
        lock_file   => './scratch/lock/crawler.pid',
        scratch_dir => './scratch/crawler',
        output_dir  => './output/crawler',
    },

    filter => {
        log_dir      => './logs/filter',
        log_level    => 'all',
        lock_file    => './scratch/lock/filter.pid',
        input_dir    => './output/crawler',
        scratch_dir  => './scratch/filter',
        output_dir   => './output/filter',
        mode         => 'fetch', # fetch or move
        enable_cache => 1,
    },

    build => {
        log_dir     => './logs/build',
        log_level   => 'all',
        lock_file   => './scratch/lock/build.pid',
        input_dir   => './output/filter',
        scratch_dir => './scratch/build',
    },

    make_clean => {
        ageing    => 7,
        lock_file => './scratch/lock/make_clean.pid',
    },
};

1;
